package com.tianji.learning.service;

import com.tianji.api.dto.leanring.LearningLessonDTO;
import com.tianji.learning.domain.dto.LearningRecordFormDTO;
import com.tianji.learning.domain.po.LearningRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 学习记录表 服务类
 * </p>
 *
 * @author 老李头儿
 * @since 2025-03-24
 */
public interface ILearningRecordService extends IService<LearningRecord> {

    /**
     * @Description 查询指定课程的学习记录
     * @Author 老李头儿
     * @Date 2025年03月24 15:39:06
     * @param courseId
     * @Return {@link LearningLessonDTO}
     **/
    LearningLessonDTO queryLearningRecordByCourse(Long courseId);



    /**
     * @Description 提交学习记录
     * @param learningRecordFormDTO
     */
    void addLearningRecord(LearningRecordFormDTO learningRecordFormDTO);
}
